package com.example.demo.study.opp;

public  class Vehicle {
    private String brand= "Found";

    public Vehicle(){}

    public Vehicle(String brand){
        this.brand=brand;
    }
    //省略了getter和setter方法

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void run (){
        System.out.println(brand+"正在行驶");
    }
    public void stop(){
        System.out.println(brand+"已经停止");
    }
}
